package pers.chao.cacheable.core.factory;

import pers.chao.cacheable.core.AbstractCacheProcessor;

import java.lang.annotation.Annotation;
import java.lang.reflect.Method;

/**
 * Description: redis缓存操作类实例化工厂
 *
 * @author W.Chao
 * @date 2020/10/2 0:46
 **/
public interface ICacheProcessorFactory {
	/**
	 * 获取实际redis数据结构处理器
	 *
	 * @param method
	 * @param cacheStructAnno
	 * @param <T>
	 * @return
	 */
	<T extends Annotation> AbstractCacheProcessor get(Method method, Annotation cacheStructAnno);
}
